package com.liqi.frame.comm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liqi.frame.comm.po.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by liqi on 2018/1/5.
 * liqiwork@qq.com
 */
public interface UserRoleDao extends BaseMapper<UserRole> {
    int insertUserAndRoles(List<UserRole> userRole);
    int deleteUserAndRolesByIds(@Param("ids") String[] ids);
    int deleteUserAndRolesByRoleId(@Param("roleId") String roleId);
    List<UserRole> getUserAndRolesByUserId(@Param("userId") String roleId);
}
